home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / tontie_hammer.swf / scripts / DefineSprite_353 / frame_2 / PlaceObject2_352_3 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2012-01-07  |  624b  |  35 lines

  1. onClipEvent(enterFrame){
  2.    if(joutai == "up")
  3.    {
  4.       if(_Y > 0)
  5.       {
  6.          _Y = _Y - _parent.hitokoma;
  7.       }
  8.       else
  9.       {
  10.          _Y = 0;
  11.          _root.piko_ok = 1;
  12.          joutai = "top";
  13.       }
  14.    }
  15.    else if(joutai != "top")
  16.    {
  17.       if(joutai == "down")
  18.       {
  19.          if(_Y < _parent.soko)
  20.          {
  21.             _Y = _Y + _parent.hitokoma;
  22.          }
  23.          else
  24.          {
  25.             _Y = _parent.soko;
  26.             _root.mogura_on -= 1;
  27.             with(_parent)
  28.             {
  29.                gotoAndStop("off");
  30.             }
  31.          }
  32.       }
  33.    }
  34. }
  35.